﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DateTimeTest
{
    class Program
    {
        static void Main(string[] args)
        {
            string str = string.Format(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
            Console.WriteLine(str);

        }
    }
}
